#ifndef DIALOG_H
#define DIALOG_H

#include <QDialog>
#include <QTcpSocket>
#include <QCryptographicHash>

namespace Ui {
class Dialog;
}

class Dialog : public QDialog
{
    Q_OBJECT

public:
    explicit Dialog(QWidget *parent = nullptr);
    ~Dialog();

protected:
    void paintEvent(QPaintEvent *event) override;

private slots:
    void btnConnClickedSlot();
    void connectedSlot();
    void disconnectedSlot();
    void readyReadSlot();
    void registerSlot();
    void loginSlot();
    void btnSendClickedSlot();
    void btnChagepageSlot();
    void btnChagepageSlot2();
    void executeQuery();
    void btnChagepageSlot3();
private:
    Ui::Dialog *ui;
    QTcpSocket *client;
};

#endif // DIALOG_H
